package hoge;

import luccy.annotations.Component;
import luccy.annotations.Inject;
import luccy.annotations.Prototype;

@Component
@Prototype
public class Client {

    private Greeting greeting;

    @Inject
    public Client(Greeting greeting) {
        this.greeting = greeting;
    }

    public void execute() {
        System.out.println(greeting.greet());
    }
}